package cn.itcast.nems.payment.dto;

import cn.itcast.nems.payment.constant.PaymentSyncStateEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PaymentSyncResultDTO {
    private String paymentOrderId;
    private Integer journalId;
    private Integer studentId;
    private Integer clazzId;
    private String studentRecordId;
    /** 支付金额 */
    private Integer amount ;
    /** 是否需要继续处理 */
    private Boolean continueFlag ;
    /** 是否需要添加同步日志 */
    private Boolean logFlag ;
    /** 同步状态 */
    PaymentSyncStateEnum syncStateEnum ;
    /** 支付渠道ID  */
    private String paymentchannelId ;
    /** 支付渠道name  */
    private String paymentchannelName ;
    /** 确认学生交费时间 */
    private Date confirmtime;
    /** 支付方式code **/
    private String payMethodCode;
    /** 支付方式名字 **/
    private String payMethodName;

    public void setOtherStateEnum () {
        this.setContinueFlag(false);
        this.setLogFlag(false);
        this.setSyncStateEnum(PaymentSyncStateEnum.OTHER);
    }
}
